package com.chen.service.impl;


import com.chen.mapper.ProblemSubmitMapper;
import com.chen.popj.entity.ProblemSubmit;
import com.chen.service.ProblemSubmitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProblemSubmitServiceImpl implements ProblemSubmitService {

    @Autowired
    ProblemSubmitMapper problemSubmitMapper;

    /**
     * 根据提交id查询对应的题目信息
     *
     * @param problemSubmitId
     * @return
     */
    @Override
    public ProblemSubmit getById(long problemSubmitId) {
        return problemSubmitMapper.getById(problemSubmitId);
    }

    /**
     * 根据提交id修改提交信息
     *
     * @param problemSubmit
     */
    @Override
    public void updateById(ProblemSubmit problemSubmit) {
        problemSubmitMapper.updateById(problemSubmit);
    }
}
